home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / DTS Sample Code / Macintosh Sample Code / Monthly Releases (Compressed) / MacDTS.Sample.Code.90.05.sit / SC.014.CPlusTESample / Application.h < prev    next >
MacBinary  |  1990-05-01  |  6.1 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue May 1 12:00:00 1990, modified Tue May 1 12:00:00 1990, creator 'MPS ', type ASCII, 5593 bytes "Application.h" , at 0x1659 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 41 70 70 6c 69 63 | 61 74 69 6f 6e 2e 68 00 |..Applic|ation.h.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 15 d9 00 | 00 01 ac a2 63 63 00 a2 |........|....cc..|
|00000060| 63 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |cc......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 93 04 00 00 |........|........|
|00000080| 2f 2a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/*------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0d 09 50 |--------|----...P|
|000000e0| 72 6f 67 72 61 6d 3a 09 | 43 50 6c 75 73 54 45 53 |rogram:.|CPlusTES|
|000000f0| 61 6d 70 6c 65 20 32 2e | 30 0d 09 46 69 6c 65 3a |ample 2.|0..File:|
|00000100| 09 09 41 70 70 6c 69 63 | 61 74 69 6f 6e 2e 68 0d |..Applic|ation.h.|
|00000110| 09 55 73 65 73 3a 20 20 | 20 20 20 20 20 41 70 70 |.Uses: | App|
|00000120| 4c 69 62 2e 68 0d 0d 09 | 62 79 20 41 6e 64 72 65 |Lib.h...|by Andre|
|00000130| 77 20 53 68 65 62 61 6e | 6f 77 0d 09 6f 66 20 41 |w Sheban|ow..of A|
|00000140| 70 70 6c 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 44 |pple Mac|intosh D|
|00000150| 65 76 65 6c 6f 70 65 72 | 20 54 65 63 68 6e 69 63 |eveloper| Technic|
|00000160| 61 6c 20 53 75 70 70 6f | 72 74 0d 0d 09 43 6f 70 |al Suppo|rt...Cop|
|00000170| 79 72 69 67 68 74 20 a9 | 20 31 39 38 39 2d 31 39 |yright .| 1989-19|
|00000180| 39 30 20 41 70 70 6c 65 | 20 43 6f 6d 70 75 74 65 |90 Apple| Compute|
|00000190| 72 2c 20 49 6e 63 2e 0d | 09 41 6c 6c 20 72 69 67 |r, Inc..|.All rig|
|000001a0| 68 74 73 20 72 65 73 65 | 72 76 65 64 2e 0d 0d 2d |hts rese|rved...-|
|000001b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000001c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000001d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000001e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000001f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000200| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2a 2f 0d 0d 23 69 66 |--------|-*/..#if|
|00000210| 6e 64 65 66 20 5f 5f 41 | 50 50 4c 49 43 41 54 49 |ndef __A|PPLICATI|
|00000220| 4f 4e 5f 5f 0d 23 64 65 | 66 69 6e 65 20 5f 5f 41 |ON__.#de|fine __A|
|00000230| 50 50 4c 49 43 41 54 49 | 4f 4e 5f 5f 0d 0d 2f 2f |PPLICATI|ON__..//|
|00000240| 20 49 6e 63 6c 75 64 65 | 20 6e 65 63 65 73 73 61 | Include| necessa|
|00000250| 72 79 20 69 6e 74 65 72 | 66 61 63 65 20 66 69 6c |ry inter|face fil|
|00000260| 65 73 0d 23 69 66 6e 64 | 65 66 20 5f 5f 53 54 52 |es.#ifnd|ef __STR|
|00000270| 49 4e 47 5f 5f 0d 23 69 | 6e 63 6c 75 64 65 20 3c |ING__.#i|nclude <|
|00000280| 53 74 72 69 6e 67 2e 68 | 3e 0d 23 65 6e 64 69 66 |String.h|>.#endif|
|00000290| 0d 0d 23 69 66 6e 64 65 | 66 20 5f 5f 54 59 50 45 |..#ifnde|f __TYPE|
|000002a0| 53 5f 5f 0d 23 69 6e 63 | 6c 75 64 65 20 3c 54 79 |S__.#inc|lude <Ty|
|000002b0| 70 65 73 2e 68 3e 0d 23 | 65 6e 64 69 66 0d 23 69 |pes.h>.#|endif.#i|
|000002c0| 66 6e 64 65 66 20 5f 5f | 44 45 53 4b 5f 5f 0d 23 |fndef __|DESK__.#|
|000002d0| 69 6e 63 6c 75 64 65 20 | 3c 44 65 73 6b 2e 68 3e |include |<Desk.h>|
|000002e0| 0d 23 65 6e 64 69 66 0d | 23 69 66 6e 64 65 66 20 |.#endif.|#ifndef |
|000002f0| 5f 5f 45 56 45 4e 54 53 | 5f 5f 0d 23 69 6e 63 6c |__EVENTS|__.#incl|
|00000300| 75 64 65 20 3c 45 76 65 | 6e 74 73 2e 68 3e 0d 23 |ude <Eve|nts.h>.#|
|00000310| 65 6e 64 69 66 0d 23 69 | 66 6e 64 65 66 20 5f 5f |endif.#i|fndef __|
|00000320| 4f 53 55 54 49 4c 53 5f | 5f 0d 23 69 6e 63 6c 75 |OSUTILS_|_.#inclu|
|00000330| 64 65 20 3c 4f 53 55 74 | 69 6c 73 2e 68 3e 0d 23 |de <OSUt|ils.h>.#|
|00000340| 65 6e 64 69 66 0d 0d 2f | 2f 20 77 65 20 6e 65 65 |endif../|/ we nee|
|00000350| 64 20 72 65 73 6f 75 72 | 63 65 20 69 64 73 0d 23 |d resour|ce ids.#|
|00000360| 69 66 6e 64 65 66 20 5f | 5f 41 50 50 4c 49 42 5f |ifndef _|_APPLIB_|
|00000370| 5f 0d 23 69 6e 63 6c 75 | 64 65 20 22 41 70 70 4c |_.#inclu|de "AppL|
|00000380| 69 62 2e 68 22 0d 23 65 | 6e 64 69 66 0d 0d 2f 2f |ib.h".#e|ndif..//|
|00000390| 20 77 65 20 6e 65 65 64 | 20 74 68 65 20 65 78 63 | we need| the exc|
|000003a0| 65 70 74 69 6f 6e 73 20 | 63 6f 64 65 0d 23 69 66 |eptions |code.#if|
|000003b0| 6e 64 65 66 20 5f 5f 45 | 58 43 45 50 54 49 4f 4e |ndef __E|XCEPTION|
|000003c0| 53 5f 5f 0d 23 69 6e 63 | 6c 75 64 65 20 22 45 78 |S__.#inc|lude "Ex|
|000003d0| 63 65 70 74 69 6f 6e 73 | 2e 68 22 0d 23 65 6e 64 |ceptions|.h".#end|
|000003e0| 69 66 0d 0d 63 6c 61 73 | 73 20 54 44 6f 63 75 6d |if..clas|s TDocum|
|000003f0| 65 6e 74 3b 0d 63 6c 61 | 73 73 20 54 44 6f 63 75 |ent;.cla|ss TDocu|
|00000400| 6d 65 6e 74 4c 69 73 74 | 3b 0d 0d 2f 2f 20 59 4e |mentList|;..// YN|
|00000410| 43 52 65 73 75 6c 74 20 | 69 73 20 61 20 74 79 70 |CResult |is a typ|
|00000420| 65 20 75 73 65 64 20 74 | 6f 20 69 6e 64 69 63 61 |e used t|o indica|
|00000430| 74 65 20 61 20 72 65 73 | 75 6c 74 20 66 72 6f 6d |te a res|ult from|
|00000440| 0d 2f 2f 20 61 20 75 73 | 65 72 20 6f 70 65 72 61 |.// a us|er opera|
|00000450| 74 69 6f 6e 2e 20 59 4e | 43 20 6d 65 61 6e 73 20 |tion. YN|C means |
|00000460| 79 65 73 2f 6e 6f 2f 63 | 61 6e 63 65 6c 2c 20 62 |yes/no/c|ancel, b|
|00000470| 75 74 20 79 65 73 0d 2f | 2f 20 61 6e 64 20 6e 6f |ut yes./|/ and no|
|00000480| 20 63 61 6e 20 61 6c 73 | 6f 20 68 61 76 65 20 73 | can als|o have s|
|00000490| 79 6e 6f 6e 79 6d 73 20 | 6c 69 6b 65 20 53 61 76 |ynonyms |like Sav|
|000004a0| 65 20 61 6e 64 20 44 69 | 73 63 61 72 64 2e 0d 65 |e and Di|scard..e|
|000004b0| 6e 75 6d 20 59 4e 43 52 | 65 73 75 6c 74 20 7b 20 |num YNCR|esult { |
|000004c0| 79 65 73 52 65 73 75 6c | 74 2c 20 6e 6f 52 65 73 |yesResul|t, noRes|
|000004d0| 75 6c 74 2c 20 63 61 6e | 63 65 6c 52 65 73 75 6c |ult, can|celResul|
|000004e0| 74 20 7d 3b 0d 0d 2f 2a | 0d 09 54 41 70 70 6c 69 |t };../*|..TAppli|
|000004f0| 63 61 74 69 6f 6e 3a 0d | 0d 09 54 68 69 73 20 69 |cation:.|..This i|
|00000500| 73 20 6f 75 72 20 63 6c | 61 73 73 20 77 68 69 63 |s our cl|ass whic|
|00000510| 68 20 69 6d 70 6c 65 6d | 65 6e 74 73 20 61 20 62 |h implem|ents a b|
|00000520| 61 73 69 63 20 4d 61 63 | 69 6e 74 6f 73 68 20 73 |asic Mac|intosh s|
|00000530| 74 79 6c 65 20 70 72 6f | 67 72 61 6d 2c 0d 09 69 |tyle pro|gram,..i|
|00000540| 6e 63 6c 75 64 69 6e 67 | 20 61 20 4d 75 6c 74 69 |ncluding| a Multi|
|00000550| 46 69 6e 64 65 72 2d 61 | 77 61 72 65 20 65 76 65 |Finder-a|ware eve|
|00000560| 6e 74 20 6c 6f 6f 70 2e | 0d 2a 2f 0d 0d 2f 2f 20 |nt loop.|.*/..// |
|00000570| 77 65 20 64 65 72 69 76 | 65 20 66 72 6f 6d 20 68 |we deriv|e from h|
|00000580| 61 6e 64 6c 65 20 6f 62 | 6a 65 63 74 20 74 6f 20 |andle ob|ject to |
|00000590| 70 72 65 76 65 6e 74 20 | 66 72 61 67 6d 65 6e 74 |prevent |fragment|
|000005a0| 61 74 69 6f 6e 0d 63 6c | 61 73 73 20 54 41 70 70 |ation.cl|ass TApp|
|000005b0| 6c 69 63 61 74 69 6f 6e | 20 3a 20 70 75 62 6c 69 |lication| : publi|
|000005c0| 63 20 48 61 6e 64 6c 65 | 4f 62 6a 65 63 74 20 7b |c Handle|Object {|
|000005d0| 0d 70 72 69 76 61 74 65 | 3a 0d 09 73 74 61 74 69 |.private|:..stati|
|000005e0| 63 20 4f 53 54 79 70 65 | 20 66 43 72 65 61 74 6f |c OSType| fCreato|
|000005f0| 72 3b 0d 0d 70 75 62 6c | 69 63 3a 0d 09 2f 2f 20 |r;..publ|ic:..// |
|00000600| 4f 75 72 20 63 6f 6e 73 | 74 72 75 63 74 6f 72 0d |Our cons|tructor.|
|00000610| 09 54 41 70 70 6c 69 63 | 61 74 69 6f 6e 28 4f 53 |.TApplic|ation(OS|
|00000620| 54 79 70 65 20 63 72 65 | 61 74 6f 72 29 3b 0d 0d |Type cre|ator);..|
|00000630| 09 2f 2f 20 70 72 6f 63 | 65 73 73 20 66 69 6e 64 |.// proc|ess find|
|00000640| 65 72 20 61 72 67 75 6d | 65 6e 74 73 0d 09 76 69 |er argum|ents..vi|
|00000650| 72 74 75 61 6c 20 76 6f | 69 64 09 50 72 6f 63 65 |rtual vo|id.Proce|
|00000660| 73 73 41 72 67 73 28 29 | 3b 0d 0d 09 2f 2f 20 43 |ssArgs()|;...// C|
|00000670| 61 6c 6c 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 |all this| routine|
|00000680| 20 74 6f 20 73 74 61 72 | 74 20 65 76 65 6e 74 20 | to star|t event |
|00000690| 6c 6f 6f 70 20 72 75 6e | 6e 69 6e 67 0d 09 2f 2f |loop run|ning..//|
|000006a0| 20 49 74 20 77 69 6c 6c | 20 6e 6f 74 20 72 65 74 | It will| not ret|
|000006b0| 75 72 6e 20 75 6e 74 69 | 6c 20 74 68 65 20 75 73 |urn unti|l the us|
|000006c0| 65 72 20 71 75 69 74 73 | 20 74 68 65 20 61 70 70 |er quits| the app|
|000006d0| 6c 69 63 61 74 69 6f 6e | 20 28 76 69 61 20 61 20 |lication| (via a |
|000006e0| 63 61 6c 6c 0d 09 2f 2f | 20 74 6f 20 44 6f 51 75 |call..//| to DoQu|
|000006f0| 69 74 2c 20 62 65 6c 6f | 77 29 0d 09 76 69 72 74 |it, belo|w)..virt|
|00000700| 75 61 6c 20 76 6f 69 64 | 09 45 76 65 6e 74 4c 6f |ual void|.EventLo|
|00000710| 6f 70 28 29 3b 0d 0d 09 | 2f 2f 20 55 74 69 6c 69 |op();...|// Utili|
|00000720| 74 79 20 72 6f 75 74 69 | 6e 65 73 20 79 6f 75 20 |ty routi|nes you |
|00000730| 63 61 6e 20 75 73 65 0d | 09 73 74 61 74 69 63 20 |can use.|.static |
|00000740| 42 6f 6f 6c 65 61 6e 09 | 09 09 54 72 61 70 41 76 |Boolean.|..TrapAv|
|00000750| 61 69 6c 61 62 6c 65 28 | 73 68 6f 72 74 20 74 4e |ailable(|short tN|
|00000760| 75 6d 62 65 72 2c 54 72 | 61 70 54 79 70 65 20 74 |umber,Tr|apType t|
|00000770| 54 79 70 65 29 3b 0d 09 | 09 2f 2f 20 49 73 20 74 |Type);..|.// Is t|
|00000780| 72 61 70 20 69 6d 70 6c | 65 6d 65 6e 74 65 64 3f |rap impl|emented?|
|00000790| 3f 3f 0d 09 69 6e 6c 69 | 6e 65 20 54 44 6f 63 75 |??..inli|ne TDocu|
|000007a0| 6d 65 6e 74 4c 69 73 74 | 2a 09 44 6f 63 4c 69 73 |mentList|*.DocLis|
|000007b0| 74 28 29 20 7b 20 72 65 | 74 75 72 6e 20 66 44 6f |t() { re|turn fDo|
|000007c0| 63 4c 69 73 74 3b 20 7d | 3b 0d 09 73 74 61 74 69 |cList; }|;..stati|
|000007d0| 63 20 4f 53 54 79 70 65 | 09 09 09 47 65 74 43 72 |c OSType|...GetCr|
|000007e0| 65 61 74 6f 72 28 29 20 | 7b 20 72 65 74 75 72 6e |eator() |{ return|
|000007f0| 20 66 43 72 65 61 74 6f | 72 3b 20 7d 3b 0d 09 73 | fCreato|r; };..s|
|00000800| 74 61 74 69 63 20 76 6f | 69 64 09 09 09 09 57 44 |tatic vo|id....WD|
|00000810| 54 6f 44 69 72 49 44 28 | 73 68 6f 72 74 20 77 64 |ToDirID(|short wd|
|00000820| 52 65 66 4e 75 6d 2c 20 | 73 68 6f 72 74 26 20 76 |RefNum, |short& v|
|00000830| 52 65 66 4e 75 6d 2c 20 | 6c 6f 6e 67 26 20 64 69 |RefNum, |long& di|
|00000840| 72 49 44 29 3b 0d 09 09 | 2f 2f 20 75 74 69 6c 69 |rID);...|// utili|
|00000850| 74 79 20 72 6f 75 74 69 | 6e 65 20 74 6f 20 63 6f |ty routi|ne to co|
|00000860| 6e 76 65 72 74 20 61 20 | 77 6f 72 6b 69 6e 67 20 |nvert a |working |
|00000870| 64 69 72 65 63 74 6f 72 | 79 20 74 6f 20 61 20 76 |director|y to a v|
|00000880| 52 65 66 4e 75 6d 2f 64 | 69 72 49 44 20 70 61 69 |RefNum/d|irID pai|
|00000890| 72 0d 0d 70 72 6f 74 65 | 63 74 65 64 3a 0d 09 76 |r..prote|cted:..v|
|000008a0| 69 72 74 75 61 6c 20 6c | 6f 6e 67 09 53 74 61 63 |irtual l|ong.Stac|
|000008b0| 6b 4e 65 65 64 65 64 28 | 29 20 7b 20 72 65 74 75 |kNeeded(|) { retu|
|000008c0| 72 6e 20 30 3b 20 7d 3b | 0d 09 09 2f 2f 20 52 65 |rn 0; };|...// Re|
|000008d0| 74 75 72 6e 73 20 74 6f | 74 61 6c 20 73 74 61 63 |turns to|tal stac|
|000008e0| 6b 20 73 70 61 63 65 20 | 72 65 71 75 69 72 65 64 |k space |required|
|000008f0| 20 69 6e 20 62 79 74 65 | 73 2e 0d 09 09 2f 2f 20 | in byte|s....// |
|00000900| 52 65 74 75 72 6e 73 20 | 30 20 62 79 20 64 65 66 |Returns |0 by def|
|00000910| 61 75 6c 74 2c 20 77 68 | 69 63 68 20 74 65 6c 6c |ault, wh|ich tell|
|00000920| 73 20 74 68 65 20 69 6e | 69 74 69 61 6c 69 7a 61 |s the in|itializa|
|00000930| 74 69 6f 6e 20 63 6f 64 | 65 0d 09 09 2f 2f 20 74 |tion cod|e...// t|
|00000940| 6f 20 75 73 65 20 74 68 | 65 20 64 65 66 61 75 6c |o use th|e defaul|
|00000950| 74 20 73 74 61 63 6b 20 | 73 69 7a 65 2e 0d 09 76 |t stack |size...v|
|00000960| 69 72 74 75 61 6c 20 6c | 6f 6e 67 09 48 65 61 70 |irtual l|ong.Heap|
|00000970| 4e 65 65 64 65 64 28 29 | 20 7b 20 72 65 74 75 72 |Needed()| { retur|
|00000980| 6e 20 30 3b 20 7d 3b 0d | 09 09 2f 2f 20 52 65 74 |n 0; };.|..// Ret|
|00000990| 75 72 6e 73 20 74 6f 74 | 61 6c 20 68 65 61 70 20 |urns tot|al heap |
|000009a0| 73 70 61 63 65 20 72 65 | 71 75 69 72 65 64 20 69 |space re|quired i|
|000009b0| 6e 20 62 79 74 65 73 2e | 0d 09 09 2f 2f 20 52 65 |n bytes.|...// Re|
|000009c0| 74 75 72 6e 73 20 30 20 | 62 79 20 64 65 66 61 75 |turns 0 |by defau|
|000009d0| 6c 74 2c 20 77 68 69 63 | 68 20 74 65 6c 6c 73 20 |lt, whic|h tells |
|000009e0| 74 68 65 20 69 6e 69 74 | 69 61 6c 69 7a 61 74 69 |the init|ializati|
|000009f0| 6f 6e 20 63 6f 64 65 0d | 09 09 2f 2f 20 74 6f 20 |on code.|..// to |
|00000a00| 75 73 65 20 77 68 61 74 | 65 76 65 72 20 68 65 61 |use what|ever hea|
|00000a10| 70 20 73 69 7a 65 20 69 | 73 20 67 69 76 65 6e 2e |p size i|s given.|
|00000a20| 0d 0d 09 2f 2f 20 63 61 | 6c 6c 65 64 20 62 79 20 |...// ca|lled by |
|00000a30| 45 76 65 6e 74 4c 6f 6f | 70 20 74 6f 20 70 72 6f |EventLoo|p to pro|
|00000a40| 63 65 73 73 20 61 6e 20 | 69 6e 64 69 76 69 64 75 |cess an |individu|
|00000a50| 61 6c 20 65 76 65 6e 74 | 0d 09 76 69 72 74 75 61 |al event|..virtua|
|00000a60| 6c 20 76 6f 69 64 09 50 | 72 6f 63 65 73 73 45 76 |l void.P|rocessEv|
|00000a70| 65 6e 74 28 29 3b 0d 0d | 09 2f 2f 20 4c 6f 6f 70 |ent();..|.// Loop|
|00000a80| 20 63 6f 6e 74 72 6f 6c | 20 6d 65 74 68 6f 64 73 | control| methods|
|00000a90| 20 79 6f 75 20 6d 61 79 | 20 6e 65 65 64 20 74 6f | you may| need to|
|00000aa0| 20 6f 76 65 72 72 69 64 | 65 0d 09 76 69 72 74 75 | overrid|e..virtu|
|00000ab0| 61 6c 20 76 6f 69 64 09 | 53 65 74 55 70 28 29 20 |al void.|SetUp() |
|00000ac0| 7b 7d 3b 09 09 09 09 2f | 2f 20 52 75 6e 20 62 65 |{};..../|/ Run be|
|00000ad0| 66 6f 72 65 20 65 76 65 | 6e 74 20 6c 6f 6f 70 20 |fore eve|nt loop |
|00000ae0| 73 74 61 72 74 73 0d 09 | 76 69 72 74 75 61 6c 20 |starts..|virtual |
|00000af0| 76 6f 69 64 09 44 6f 49 | 64 6c 65 28 29 20 7b 7d |void.DoI|dle() {}|
|00000b00| 3b 09 09 09 2f 2f 20 69 | 64 6c 65 20 74 69 6d 65 |;...// i|dle time|
|00000b10| 20 68 61 6e 64 6c 65 72 | 20 28 62 6c 69 6e 6b 20 | handler| (blink |
|00000b20| 63 61 72 65 74 2c 20 62 | 61 63 6b 67 72 6f 75 6e |caret, b|ackgroun|
|00000b30| 64 20 74 61 73 6b 73 29 | 0d 09 76 69 72 74 75 61 |d tasks)|..virtua|
|00000b40| 6c 20 76 6f 69 64 09 41 | 64 6a 75 73 74 4d 65 6e |l void.A|djustMen|
|00000b50| 75 73 28 29 20 7b 7d 3b | 09 09 2f 2f 20 6d 65 6e |us() {};|..// men|
|00000b60| 75 20 75 70 64 61 74 65 | 72 20 72 6f 75 74 69 6e |u update|r routin|
|00000b70| 65 0d 0d 09 2f 2f 20 65 | 76 65 6e 74 20 68 61 6e |e...// e|vent han|
|00000b80| 64 6c 65 72 73 20 79 6f | 75 20 73 68 6f 75 6c 64 |dlers yo|u should|
|00000b90| 6e 27 74 20 6e 65 65 64 | 20 74 6f 20 6f 76 65 72 |n't need| to over|
|00000ba0| 72 69 64 65 20 69 6e 20 | 61 20 74 79 70 69 63 61 |ride in |a typica|
|00000bb0| 6c 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 0d 09 76 |l applic|ation..v|
|00000bc0| 69 72 74 75 61 6c 20 76 | 6f 69 64 09 44 6f 4f 53 |irtual v|oid.DoOS|
|00000bd0| 45 76 65 6e 74 28 29 3b | 0d 09 09 2f 2f 20 43 61 |Event();|...// Ca|
|00000be0| 6c 6c 73 20 44 6f 53 75 | 73 70 65 6e 64 2c 20 44 |lls DoSu|spend, D|
|00000bf0| 6f 52 65 73 75 6d 65 20 | 61 6e 64 20 44 6f 49 64 |oResume |and DoId|
|00000c00| 6c 65 20 61 73 20 61 70 | 72 6f 70 6f 73 0d 09 76 |le as ap|ropos..v|
|00000c10| 69 72 74 75 61 6c 20 76 | 6f 69 64 09 44 6f 4d 6f |irtual v|oid.DoMo|
|00000c20| 75 73 65 44 6f 77 6e 28 | 29 3b 0d 09 09 2f 2f 20 |useDown(|);...// |
|00000c30| 43 61 6c 6c 73 20 44 6f | 43 6f 6e 74 65 6e 74 2c |Calls Do|Content,|
|00000c40| 20 44 6f 47 72 6f 77 2c | 20 44 6f 5a 6f 6f 6d 2c | DoGrow,| DoZoom,|
|00000c50| 20 65 74 63 0d 09 76 69 | 72 74 75 61 6c 20 76 6f | etc..vi|rtual vo|
|00000c60| 69 64 09 44 6f 4b 65 79 | 44 6f 77 6e 28 29 3b 0d |id.DoKey|Down();.|
|00000c70| 09 09 2f 2f 20 61 6c 73 | 6f 20 63 61 6c 6c 65 64 |..// als|o called|
|00000c80| 20 66 6f 72 20 61 75 74 | 6f 6b 65 79 20 65 76 65 | for aut|okey eve|
|00000c90| 6e 74 73 0d 09 76 69 72 | 74 75 61 6c 20 76 6f 69 |nts..vir|tual voi|
|00000ca0| 64 09 44 6f 41 63 74 69 | 76 61 74 65 45 76 74 28 |d.DoActi|vateEvt(|
|00000cb0| 29 3b 0d 09 09 2f 2f 20 | 68 61 6e 64 6c 65 73 20 |);...// |handles |
|00000cc0| 73 65 74 75 70 2c 20 61 | 6e 64 20 63 61 6c 6c 73 |setup, a|nd calls|
|00000cd0| 20 44 6f 41 63 74 69 76 | 61 74 65 20 28 62 65 6c | DoActiv|ate (bel|
|00000ce0| 6f 77 29 0d 09 76 69 72 | 74 75 61 6c 20 76 6f 69 |ow)..vir|tual voi|
|00000cf0| 64 09 44 6f 55 70 64 61 | 74 65 45 76 74 28 29 3b |d.DoUpda|teEvt();|
|00000d00| 0d 09 09 2f 2f 20 68 61 | 6e 64 6c 65 73 20 73 65 |...// ha|ndles se|
|00000d10| 74 75 70 2c 20 61 6e 64 | 20 63 61 6c 6c 73 20 44 |tup, and| calls D|
|00000d20| 6f 55 70 64 61 74 65 20 | 28 62 65 6c 6f 77 29 0d |oUpdate |(below).|
|00000d30| 09 76 69 72 74 75 61 6c | 20 76 6f 69 64 09 44 6f |.virtual| void.Do|
|00000d40| 4d 6f 75 73 65 49 6e 53 | 79 73 57 69 6e 64 6f 77 |MouseInS|ysWindow|
|00000d50| 28 29 20 7b 20 53 79 73 | 74 65 6d 43 6c 69 63 6b |() { Sys|temClick|
|00000d60| 28 26 66 54 68 65 45 76 | 65 6e 74 2c 20 66 57 68 |(&fTheEv|ent, fWh|
|00000d70| 69 63 68 57 69 6e 64 6f | 77 29 3b 20 7d 3b 0d 09 |ichWindo|w); };..|
|00000d80| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 09 44 6f 44 |virtual |void.DoD|
|00000d90| 72 61 67 28 29 3b 0d 09 | 76 69 72 74 75 61 6c 20 |rag();..|virtual |
|00000da0| 76 6f 69 64 09 44 6f 47 | 6f 41 77 61 79 28 29 3b |void.DoG|oAway();|
|00000db0| 0d 09 09 2f 2f 20 68 61 | 6e 64 6c 65 73 20 73 65 |...// ha|ndles se|
|00000dc0| 74 75 70 2c 20 61 6e 64 | 20 63 61 6c 6c 73 20 54 |tup, and| calls T|
|00000dd0| 44 6f 63 75 6d 65 6e 74 | 3a 3a 44 6f 43 6c 6f 73 |Document|::DoClos|
|00000de0| 65 0d 09 76 69 72 74 75 | 61 6c 20 76 6f 69 64 09 |e..virtu|al void.|
|00000df0| 44 6f 51 75 69 74 28 42 | 6f 6f 6c 65 61 6e 20 61 |DoQuit(B|oolean a|
|00000e00| 73 6b 55 73 65 72 2c 20 | 59 4e 43 52 65 73 75 6c |skUser, |YNCResul|
|00000e10| 74 20 64 65 66 61 75 6c | 74 52 65 73 75 6c 74 29 |t defaul|tResult)|
|00000e20| 3b 0d 0d 09 2f 2f 20 68 | 61 6e 64 6c 65 72 73 20 |;...// h|andlers |
|00000e30| 79 6f 75 20 4d 55 53 54 | 20 6f 76 65 72 72 69 64 |you MUST| overrid|
|00000e40| 65 20 66 6f 72 20 66 75 | 6e 63 74 69 6f 6e 61 6c |e for fu|nctional|
|00000e50| 69 74 79 3a 0d 09 76 69 | 72 74 75 61 6c 20 76 6f |ity:..vi|rtual vo|
|00000e60| 69 64 09 41 64 6a 75 73 | 74 43 75 72 73 6f 72 28 |id.Adjus|tCursor(|
|00000e70| 29 20 3d 20 30 3b 0d 09 | 09 2f 2f 20 63 75 72 73 |) = 0;..|.// curs|
|00000e80| 6f 72 20 61 64 6a 75 73 | 74 20 72 6f 75 74 69 6e |or adjus|t routin|
|00000e90| 65 2c 20 73 68 6f 75 6c | 64 20 73 65 74 75 70 20 |e, shoul|d setup |
|00000ea0| 6d 6f 75 73 65 52 67 6e | 0d 09 76 69 72 74 75 61 |mouseRgn|..virtua|
|00000eb0| 6c 20 76 6f 69 64 09 44 | 6f 4d 65 6e 75 43 6f 6d |l void.D|oMenuCom|
|00000ec0| 6d 61 6e 64 28 73 68 6f | 72 74 20 6d 65 6e 75 49 |mand(sho|rt menuI|
|00000ed0| 44 2c 20 73 68 6f 72 74 | 20 6d 65 6e 75 49 74 65 |D, short| menuIte|
|00000ee0| 6d 29 20 3d 20 30 3b 0d | 09 76 69 72 74 75 61 6c |m) = 0;.|.virtual|
|00000ef0| 20 76 6f 69 64 09 44 6f | 4e 65 77 28 29 20 3d 20 | void.Do|New() = |
|00000f00| 30 3b 0d 09 76 69 72 74 | 75 61 6c 20 76 6f 69 64 |0;..virt|ual void|
|00000f10| 09 44 6f 4f 70 65 6e 28 | 29 20 3d 20 30 3b 0d 09 |.DoOpen(|) = 0;..|
|00000f20| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 09 4f 70 65 |virtual |void.Ope|
|00000f30| 6e 41 44 6f 63 28 73 68 | 6f 72 74 20 76 52 65 66 |nADoc(sh|ort vRef|
|00000f40| 4e 75 6d 2c 20 6c 6f 6e | 67 20 64 69 72 49 44 2c |Num, lon|g dirID,|
|00000f50| 0d 09 09 09 09 09 09 09 | 20 53 74 72 69 6e 67 50 |........| StringP|
|00000f60| 74 72 20 66 4e 61 6d 65 | 2c 20 4f 53 54 79 70 65 |tr fName|, OSType|
|00000f70| 20 66 54 79 70 65 29 20 | 3d 20 30 3b 0d 0d 09 2f | fType) |= 0;.../|
|00000f80| 2f 20 63 61 6c 6c 65 64 | 20 62 79 20 4f 53 45 76 |/ called| by OSEv|
|00000f90| 65 6e 74 20 28 6a 75 73 | 74 20 63 61 6c 6c 73 20 |ent (jus|t calls |
|00000fa0| 44 6f 41 63 74 69 76 61 | 74 65 20 62 79 20 64 65 |DoActiva|te by de|
|00000fb0| 66 61 75 6c 74 2c 20 73 | 6f 20 6e 6f 20 63 6c 69 |fault, s|o no cli|
|00000fc0| 70 20 63 6f 6e 76 65 72 | 73 69 6f 6e 0d 09 2f 2f |p conver|sion..//|
|00000fd0| 20 69 73 20 64 6f 6e 65 | 29 2e 20 49 66 20 79 6f | is done|). If yo|
|00000fe0| 75 20 77 61 6e 74 20 74 | 6f 20 63 6f 6e 76 65 72 |u want t|o conver|
|00000ff0| 74 20 63 6c 69 70 62 6f | 61 72 64 2c 20 6f 76 65 |t clipbo|ard, ove|
|00001000| 72 72 69 64 65 20 74 68 | 65 73 65 20 72 6f 75 74 |rride th|ese rout|
|00001010| 69 6e 65 73 0d 09 76 69 | 72 74 75 61 6c 20 76 6f |ines..vi|rtual vo|
|00001020| 69 64 09 44 6f 53 75 73 | 70 65 6e 64 28 42 6f 6f |id.DoSus|pend(Boo|
|00001030| 6c 65 61 6e 20 64 6f 43 | 6c 69 70 43 6f 6e 76 65 |lean doC|lipConve|
|00001040| 72 74 29 3b 0d 09 76 69 | 72 74 75 61 6c 20 76 6f |rt);..vi|rtual vo|
|00001050| 69 64 09 44 6f 52 65 73 | 75 6d 65 28 42 6f 6f 6c |id.DoRes|ume(Bool|
|00001060| 65 61 6e 20 64 6f 43 6c | 69 70 43 6f 6e 76 65 72 |ean doCl|ipConver|
|00001070| 74 29 3b 0d 0d 09 2f 2f | 20 49 66 20 79 6f 75 20 |t);...//| If you |
|00001080| 68 61 76 65 20 61 6e 20 | 61 70 70 20 74 68 61 74 |have an |app that|
|00001090| 20 6e 65 65 64 73 20 74 | 6f 20 6b 6e 6f 77 20 61 | needs t|o know a|
|000010a0| 62 6f 75 74 20 74 68 65 | 73 65 2c 20 6f 76 65 72 |bout the|se, over|
|000010b0| 72 69 64 65 20 74 68 65 | 6d 0d 09 76 69 72 74 75 |ride the|m..virtu|
|000010c0| 61 6c 20 76 6f 69 64 09 | 44 6f 4d 6f 75 73 65 55 |al void.|DoMouseU|
|000010d0| 70 28 29 20 7b 7d 3b 0d | 09 76 69 72 74 75 61 6c |p() {};.|.virtual|
|000010e0| 20 76 6f 69 64 09 44 6f | 44 69 73 6b 45 76 74 28 | void.Do|DiskEvt(|
|000010f0| 29 20 7b 7d 3b 0d 0d 09 | 2f 2f 20 55 74 69 6c 69 |) {};...|// Utili|
|00001100| 74 79 20 72 6f 75 74 69 | 6e 65 73 20 79 6f 75 20 |ty routi|nes you |
|00001110| 6e 65 65 64 20 74 6f 20 | 70 72 6f 76 69 64 65 20 |need to |provide |
|00001120| 74 6f 20 64 6f 20 4d 75 | 6c 74 69 46 69 6e 64 65 |to do Mu|ltiFinde|
|00001130| 72 20 73 74 75 66 66 0d | 09 76 69 72 74 75 61 6c |r stuff.|.virtual|
|00001140| 20 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 20 53 | unsigne|d long S|
|00001150| 6c 65 65 70 56 61 6c 28 | 29 20 7b 20 72 65 74 75 |leepVal(|) { retu|
|00001160| 72 6e 20 30 3b 20 7d 3b | 0d 09 09 2f 2f 20 68 6f |rn 0; };|...// ho|
|00001170| 77 20 6c 6f 6e 67 20 74 | 6f 20 73 6c 65 65 70 20 |w long t|o sleep |
|00001180| 69 6e 20 57 61 69 74 4e | 65 78 74 45 76 65 6e 74 |in WaitN|extEvent|
|00001190| 0d 0d 09 2f 2f 20 75 73 | 65 66 75 6c 20 76 61 72 |...// us|eful var|
|000011a0| 69 61 62 6c 65 73 0d 09 | 42 6f 6f 6c 65 61 6e 09 |iables..|Boolean.|
|000011b0| 09 09 66 48 61 76 65 57 | 61 69 74 4e 65 78 74 45 |..fHaveW|aitNextE|
|000011c0| 76 65 6e 74 3b 09 09 2f | 2f 20 74 72 75 65 20 69 |vent;../|/ true i|
|000011d0| 66 20 77 65 20 68 61 76 | 65 20 57 61 69 74 4e 65 |f we hav|e WaitNe|
|000011e0| 78 74 45 76 65 6e 74 20 | 74 72 61 70 0d 09 42 6f |xtEvent |trap..Bo|
|000011f0| 6f 6c 65 61 6e 09 09 09 | 66 44 6f 6e 65 3b 09 09 |olean...|fDone;..|
|00001200| 09 09 09 2f 2f 20 73 65 | 74 20 74 6f 20 74 72 75 |...// se|t to tru|
|00001210| 65 20 77 68 65 6e 20 77 | 65 20 61 72 65 20 72 65 |e when w|e are re|
|00001220| 61 64 79 20 74 6f 20 71 | 75 69 74 0d 09 42 6f 6f |ady to q|uit..Boo|
|00001230| 6c 65 61 6e 09 09 09 66 | 4f 6e 53 79 73 74 65 6d |lean...f|OnSystem|
|00001240| 37 3b 09 09 09 09 2f 2f | 20 72 75 6e 6e 69 6e 67 |7;....//| running|
|00001250| 20 73 79 73 74 65 6d 20 | 37 20 6f 72 20 62 65 74 | system |7 or bet|
|00001260| 74 65 72 0d 09 45 76 65 | 6e 74 52 65 63 6f 72 64 |ter..Eve|ntRecord|
|00001270| 09 09 66 54 68 65 45 76 | 65 6e 74 3b 09 09 09 09 |..fTheEv|ent;....|
|00001280| 2f 2f 20 6f 75 72 20 65 | 76 65 6e 74 20 72 65 63 |// our e|vent rec|
|00001290| 6f 72 64 0d 09 57 69 6e | 64 6f 77 50 74 72 09 09 |ord..Win|dowPtr..|
|000012a0| 66 57 68 69 63 68 57 69 | 6e 64 6f 77 3b 09 09 09 |fWhichWi|ndow;...|
|000012b0| 2f 2f 20 63 75 72 72 65 | 6e 74 6c 79 20 61 63 74 |// curre|ntly act|
|000012c0| 69 76 65 20 77 69 6e 64 | 6f 77 0d 09 42 6f 6f 6c |ive wind|ow..Bool|
|000012d0| 65 61 6e 09 09 09 66 49 | 6e 42 61 63 6b 67 72 6f |ean...fI|nBackgro|
|000012e0| 75 6e 64 3b 09 09 09 2f | 2f 20 74 72 75 65 20 69 |und;.../|/ true i|
|000012f0| 66 20 6f 75 72 20 61 70 | 70 20 69 73 20 73 75 73 |f our ap|p is sus|
|00001300| 70 65 6e 64 65 64 0d 09 | 42 6f 6f 6c 65 61 6e 09 |pended..|Boolean.|
|00001310| 09 09 66 57 61 6e 74 46 | 72 6f 6e 74 43 6c 69 63 |..fWantF|rontClic|
|00001320| 6b 73 3b 09 09 2f 2f 20 | 74 72 75 65 20 69 66 20 |ks;..// |true if |
|00001330| 77 65 20 77 61 6e 74 20 | 66 72 6f 6e 74 20 63 6c |we want |front cl|
|00001340| 69 63 6b 73 0d 09 52 67 | 6e 48 61 6e 64 6c 65 09 |icks..Rg|nHandle.|
|00001350| 09 66 4d 6f 75 73 65 52 | 67 6e 3b 09 09 09 09 2f |.fMouseR|gn;..../|
|00001360| 2f 20 6d 6f 75 73 65 20 | 6d 6f 76 65 64 20 72 65 |/ mouse |moved re|
|00001370| 67 69 6f 6e 20 28 73 65 | 74 20 69 74 20 69 6e 20 |gion (se|t it in |
|00001380| 79 6f 75 72 20 44 6f 49 | 64 6c 65 29 0d 09 54 44 |your DoI|dle)..TD|
|00001390| 6f 63 75 6d 65 6e 74 2a | 09 09 66 43 75 72 44 6f |ocument*|..fCurDo|
|000013a0| 63 3b 09 09 09 09 2f 2f | 20 63 75 72 72 65 6e 74 |c;....//| current|
|000013b0| 6c 79 20 61 63 74 69 76 | 65 20 64 6f 63 75 6d 65 |ly activ|e docume|
|000013c0| 6e 74 20 28 69 66 20 61 | 6e 79 29 0d 09 54 44 6f |nt (if a|ny)..TDo|
|000013d0| 63 75 6d 65 6e 74 4c 69 | 73 74 2a 09 66 44 6f 63 |cumentLi|st*.fDoc|
|000013e0| 4c 69 73 74 3b 09 09 09 | 09 2f 2f 20 74 68 65 20 |List;...|.// the |
|000013f0| 6c 69 73 74 20 6f 66 20 | 64 6f 63 75 6d 65 6e 74 |list of |document|
|00001400| 73 0d 7d 3b 0d 0d 2f 2f | 20 73 6f 6d 65 20 6f 74 |s.};..//| some ot|
|00001410| 68 65 72 20 68 61 6e 64 | 79 20 75 74 69 6c 69 74 |her hand|y utilit|
|00001420| 79 20 72 6f 75 74 69 6e | 65 73 2c 20 6e 6f 74 20 |y routin|es, not |
|00001430| 61 63 74 75 61 6c 6c 79 | 20 61 20 70 61 72 74 20 |actually| a part |
|00001440| 6f 66 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 63 |of appli|cation c|
|00001450| 6c 61 73 73 0d 0d 2f 2f | 20 64 69 73 70 6c 61 79 |lass..//| display|
|00001460| 20 61 6c 65 72 74 2c 20 | 75 73 69 6e 67 20 73 70 | alert, |using sp|
|00001470| 65 63 69 66 69 65 64 20 | 65 72 72 6f 72 20 53 54 |ecified |error ST|
|00001480| 52 23 20 72 65 73 6f 75 | 72 63 65 20 61 6e 64 20 |R# resou|rce and |
|00001490| 65 72 72 6f 72 20 63 6f | 64 65 20 61 73 20 69 6e |error co|de as in|
|000014a0| 64 65 78 0d 76 6f 69 64 | 20 41 6c 65 72 74 55 73 |dex.void| AlertUs|
|000014b0| 65 72 28 73 68 6f 72 74 | 20 65 72 72 52 65 73 49 |er(short| errResI|
|000014c0| 44 2c 20 73 68 6f 72 74 | 20 65 72 72 43 6f 64 65 |D, short| errCode|
|000014d0| 29 3b 0d 2f 2f 20 63 61 | 6c 6c 20 41 6c 65 72 74 |);.// ca|ll Alert|
|000014e0| 55 73 65 72 20 74 6f 20 | 64 69 73 70 6c 61 79 20 |User to |display |
|000014f0| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 2c 20 74 |error me|ssage, t|
|00001500| 68 65 6e 20 71 75 69 74 | 2e 2e 2e 0d 76 6f 69 64 |hen quit|....void|
|00001510| 20 42 69 67 42 61 64 45 | 72 72 6f 72 28 73 68 6f | BigBadE|rror(sho|
|00001520| 72 74 20 65 72 72 52 65 | 73 49 44 2c 20 73 68 6f |rt errRe|sID, sho|
|00001530| 72 74 20 65 72 72 43 6f | 64 65 29 3b 0d 42 6f 6f |rt errCo|de);.Boo|
|00001540| 6c 65 61 6e 20 4c 6f 6f | 6b 75 70 45 72 72 6f 72 |lean Loo|kupError|
|00001550| 53 74 72 69 6e 67 28 73 | 68 6f 72 74 20 76 61 6c |String(s|hort val|
|00001560| 75 65 2c 20 73 68 6f 72 | 74 20 72 65 73 49 44 2c |ue, shor|t resID,|
|00001570| 20 53 74 72 69 6e 67 50 | 74 72 20 73 74 72 29 3b | StringP|tr str);|
|00001580| 0d 0d 2f 2f 20 75 73 65 | 66 75 6c 20 73 74 61 74 |..// use|ful stat|
|00001590| 65 20 63 68 65 63 6b 69 | 6e 67 20 42 6f 6f 6c 65 |e checki|ng Boole|
|000015a0| 61 6e 73 20 28 6d 6f 73 | 74 6c 79 20 66 6f 72 20 |ans (mos|tly for |
|000015b0| 53 79 73 74 65 6d 20 37 | 20 63 6f 6d 70 61 74 69 |System 7| compati|
|000015c0| 62 69 6c 69 74 79 29 0d | 65 78 74 65 72 6e 20 42 |bility).|extern B|
|000015d0| 6f 6f 6c 65 61 6e 20 67 | 48 61 76 65 43 6f 6c 6f |oolean g|HaveColo|
|000015e0| 72 51 44 3b 0d 0d 69 6e | 6c 69 6e 65 20 76 6f 69 |rQD;..in|line voi|
|000015f0| 64 20 43 6f 70 79 50 53 | 74 72 69 6e 67 28 53 74 |d CopyPS|tring(St|
|00001600| 72 69 6e 67 50 74 72 20 | 74 6f 2c 20 53 74 72 69 |ringPtr |to, Stri|
|00001610| 6e 67 50 74 72 20 66 72 | 6f 6d 29 0d 7b 0d 09 6d |ngPtr fr|om).{..m|
|00001620| 65 6d 63 70 79 28 74 6f | 2c 66 72 6f 6d 2c 28 73 |emcpy(to|,from,(s|
|00001630| 69 7a 65 5f 74 29 20 28 | 66 72 6f 6d 5b 30 5d 20 |ize_t) (|from[0] |
|00001640| 26 20 30 78 30 66 66 29 | 20 2b 20 31 29 3b 0d 7d |& 0x0ff)| + 1);.}|
|00001650| 0d 0d 23 65 6e 64 69 66 | 0d 00 00 00 00 00 00 00 |..#endif|........|
|00001660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001680| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00001690| 0d 0d 7d 3b 5c 00 0e 6b | 10 00 a0 ff ff 20 00 09 |..};\..k|..... ..|
|000016a0| 6a 00 0e 6b 08 00 a1 ff | ff 20 00 09 77 00 00 00 |j..k....|. ..w...|
|000016b0| 0d 41 70 70 6c 69 63 61 | 74 69 6f 6e 2e 68 02 00 |.Applica|tion.h..|
|000016c0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 c0 |..TEXTMP|S ......|
|000016d0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 c0 |..TEXTMP|S ......|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 a2 64 55 76 00 00 | 00 00 00 00 01 ac 00 14 |...dUv..|........|
|00001700| 5c 00 0e 04 c6 00 97 ff | ff 24 00 14 70 00 0e 04 |\.......|.$..p...|
|00001710| c2 03 84 ff ff 04 00 15 | 57 00 0e 04 ae 03 85 ff |........|W.......|
|00001720| ff 04 00 15 5d 00 0e 04 | aa 03 86 ff ff 04 00 15 |....]...|........|
|00001730| 65 00 0e 04 a6 03 87 ff | ff 04 00 15 6e 00 0e 04 |e.......|....n...|
|00001740| a2 03 88 ff ff 04 00 15 | 76 00 0e 04 9e 00 8c ff |........|v.......|
|00001750| ff 04 00 16 09 00 0e 04 | 92 00 8d ff ff 04 00 16 |........|........|
|00001760| 1b 00 0e 04 8e f0 20 ff | ff 20 00 0b a9 00 00 00 |...... .|. ......|
|00001770| 00 00 96 ff ff 20 00 0b | b5 00 00 00 00 00 97 ff |..... ..|........|
|00001780| 00 00 00 1e 00 2a 00 05 | 01 d3 02 73 00 2a 00 05 |.....*..|...s.*..|
|00001790| 01 d3 02 73 00 00 02 51 | 00 00 00 00 00 00 00 00 |...s...Q|........|
|000017a0| 00 00 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |.....H..|Monaco..|
|000017b0| 00 00 00 12 00 01 00 00 | 00 4e 00 50 00 5e 00 ba |........|.N.P.^..|
|000017c0| 01 a2 00 00 00 42 00 01 | 00 06 00 04 00 2a 00 05 |.....B..|.....*..|
|000017d0| 01 d3 02 5d 00 2a 00 05 | 01 d3 02 5d a2 61 20 5c |...].*..|...].a \|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 00 00 00 |........|........|
|000017f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 34 |.....n..|.n...>.4|
|00001800| 5b 34 06 fc 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |[4......|.>..MPSR|
|00001810| 00 01 00 0a 03 f0 ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00001820| 03 ed ff ff 00 00 00 22 | 00 36 4a 78 00 00 00 00 |......."|.6Jx....|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+